<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>首页|团购网</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="shortcut icon" href="img/tuangou.ico" />
		<link rel="stylesheet" href="css/swiper.css">
		<link rel="stylesheet" type="text/css" href="css/tuangou-index.css"/>
		<link rel="stylesheet" type="text/css" href="css/reset.css"/>
	</head>
	<body>
		<!-- 头部s -->
		<header class="clearfix">
			<div class="logo fl"><a href="https://wei8ba.gitee.io/shop/homepage.html"><img src="img/LOGO.png"/></a></div>
			<div class="selectBar fr">
				<select name="">
					<option value="">广州市</option>
					<option value="">佛山市</option>
					<option value="">深圳市</option>
				</select>
			</div>
			<div class="searchBar ">
				<input type="search" placeholder="请输入商品名称"/>
			    <input type="image" src="img/fangdajing.png"/>
			</div>
			
		</header>
		<!-- 头部e -->
		
		<!-- 主体s -->
		<section>
			<!-- 轮播图 -->
			<div class="swiper-container">
				<div class="swiper-wrapper">
					<div class="swiper-slide"><img src="img/kv.jpg"/></div>
                    <div class="swiper-slide"><img src="img/kv.jpg"/></div>
                    <div class="swiper-slide"><img src="img/kv.jpg"/></div>
                </div>
                <div class="swiper-pagination"></div>
            </div>
			<!-- 优惠团购 -->
			<div class="youhui">
				<!-- 栏目名 -->
				<div class="title clearfix">
					<img class="fl icon" src="img/tuangou.png"/>
					<p class="fl p1">优惠团购</p>
					<img class="fr more" src="img/more.png"/>
					<p class="fr p2">更多</p>
				</div>
				<!-- 内容 -->
				<div class="youhui-img">
					<img class="tuangou" src="img/tuangou1.jpg" alt="" />
				    <img class="tuangou" src="img/tuangou2.jpg" alt="" />
				    <img class="tuangou" src="img/tuangou3.jpg" alt="" />
				    <img class="tuangou" src="img/tuangou4.jpg" alt="" />
				</div>
				
			</div>
			<!-- 猜你喜欢 -->
			<div class="like">
				<!-- 栏目名 -->
				<div class="title clearfix">
					<img class="fl icon" src="img/like.png"/>
					<p class="fl p1">猜你喜欢</p>
					<img class="fr more" src="img/more.png"/>
					<p class="fr p2">更多</p>
				</div>	
				<!-- 内容 -->
					<div class="detail">
						<a href="https://wei8ba.gitee.io/shop/detail.html">
						<img src="img/sushi1.jpg"/>
						<div class="wrod">
							<p class="name clearfix">
								<span class="fr"><100m</span>
								万岁寿司（正佳点）
							</p>
							<p class="number">[100店通用]<span>双人套餐</span></p>
							<p class="money clearfix">￥88.00<span class="fr">已售1000</span></p>
						</div>
						</a>
					</div>
					<div class="detail">
						<img src="img/zhou.jpg"/>
						<div class="wrod">
							<p class="name clearfix">周黑鸭（正佳点）<span class="fr"><100m</span></p>
							<p class="number">[100店通用]<span>双人套餐</span></p>
							<p class="money clearfix">￥88.00<span class="fr">已售1000</span></p>
						</div>
					</div>
					<div class="detail">
						<img src="img/sushi1.jpg"/>
						<div class="wrod">
							<p class="name clearfix">万岁寿司（正佳点）<span class="fr"><100m</span></p>
							<p class="number">[100店通用]<span>双人套餐</span></p>
							<p class="money clearfix">￥88.00<span class="fr">已售1000</span></p>
						</div>
					</div>
					<div class="detail">
						<img src="img/zhou.jpg"/>
						<div class="wrod">
							<p class="name clearfix">周黑鸭（正佳点）<span class="fr"><100m</span></p>
							<p class="number">[100店通用]<span>双人套餐</span></p>
							<p class="money clearfix">￥88.00<span class="fr">已售1000</span></p>
						</div>
					</div>
			</div>
		</section>
		<!-- 主体e -->
		
		<!-- 尾部s -->
		<footer>
			<a class="foot" href="https://wei8ba.gitee.io/shop/homepage.html">
				<img class="homepage" src="img/homepage1.png"/>
				<p>首页</p>
			</a>
			<a class="foot" href="https://wei8ba.gitee.io/shop/classification.html">
				<img class="classification" src="img/classification.png"/>
				<p>分类</p>
			</a>
			<a class="foot" href="https://wei8ba.gitee.io/shop/found.html">
				<img class="found" src="img/found.png"/>
				<p>发现</p>
			</div>
			<a class="foot" href="https://wei8ba.gitee.io/shop/my.html">
				<img class="my" src="img/my.png"/>
				<p>我的</p>
			</a>
		</footer>
		<!-- 尾部e -->
		
		
		<!-- 脚本 -->
		<script type="text/javascript">
			document.body.style.height = window.innerHeight + "px";
    
    /*动态改变根元素字体大小*/
    function recalc() {
    	//获取客户端宽度
        var clientWidth = document.documentElement.clientWidth;
        if(!clientWidth) return;
        // 字体大小   = 1个rem单位表示多少个像素（设备的宽度   /设计宽度）
        document.documentElement.style.fontSize = 40 * (clientWidth / 750) + 'px';
        
    }

    function initRecalc() {
        recalc();
        // if(浏览器支持横竖屏切换的事件){横竖屏事件}else{ resize事件 }
        var resizeEvt = 'osrientationchange' in window ? 'orientationchange' : 'resize';
        if(!document.addEventListener) return;
        window.addEventListener(resizeEvt, recalc, false);
        document.addEventListener('DOMContentLoaded', recalc, false);
    }
        initRecalc();

		</script>
		<script src="js/swiper.js"></script>
		<script>
			var mySwiper = new Swiper('.swiper-container',{
				 direction: 'horizontal',// 水平切换选项
				 loop: true,              //是否需要循环
				 autoplay:true,          //自动轮播
				 pagination: {
				 	el: '.swiper-pagination',
				 	},
			})	
		</script>
	</body>
</html>
